package cn.wolfcode.memeber.member.service.mapper;

import cn.wolfcode.luowowo.member.domain.UserInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserInfo record);

    UserInfo selectByPrimaryKey(Long id);

    List <UserInfo> selectAll();

    int updateByPrimaryKey(UserInfo record);

    int selectCountByPhone( String phone);

    UserInfo selectByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

    List<Long> selectTravelsIds(@Param("id") Long id);

    List<Long> selectStrategysIds(@Param("id") Long id);

    List<UserInfo> queryByAuthorId(Long uid);

    void updateHeadImgUrl(@Param("uid") Long uid, @Param("headImgUrl") String headImgUrl);
}